package com.zju.DoctorGo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


@Data
@TableName("notices")
public class Notice {
    /**
     * 通知ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发送者
     */
    @TableField(value = "sender")
    private String sender;

    /**
     * 优先等级
     */
    @TableField(value = "priority")
    private String priority;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 日期
     */
    @TableField(value = "date")
    private String date;

    /**
     * 公告范围
     */
    @TableField(value = "receiver")
    private String receiver;


    // 全参构造函数
    public Notice(Long id, String sender, String priority, String title, String content, String date, String receiver) {
        this.id = id;
        this.sender = sender;
        this.priority = priority;
        this.title = title;
        this.content = content;
        this.date = date;
        this.receiver = receiver;
    }

    // 无参构造函数
    public Notice() {
    }
}
